package com.uchedao.vehicledetection.model;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

/**
 * 图片
 * 
 * @author "叶晋"
 * 
 */
public class Photo implements Cloneable {
	@Expose
	@SerializedName("name")
	public String name;// 检测部位名称

	@Expose
	@SerializedName("pic_id")
	public String pic_id;// 图片id

	@Expose
	@SerializedName("pic_url")
	public String pic_url;// 图片网络路径

	@SerializedName("pic_path")
	public String pic_path;// 图片本地路径

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null || getClass() != obj.getClass()) {
			return false;
		}
		Photo photo = (Photo) obj;
		if (!name.equals(photo.name))
			return false;
		if (!pic_path.equals(photo.pic_path))
			return false;
		return true;
	}

	@Override
	public Photo clone() {

		try {
			return (Photo) super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return new Photo();
	}

}
